package com.sensetime.jv.enums;

public enum StatusEnum {

    SUCCESS(100200, "操作成功"),
    BAD_REQUEST(100400, "请求参数错误"),
    UNAUTHORIZED(100401, "未认证"),
    FORBIDDEN(100403, "无权限"),
    PARAMS_ERROR(100406, "参数错误"),
    INTERNAL_ERROR(100500, "服务器内部错误");

    private final int code;
    private final String desc;

    StatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}